feat(examples): add recommended Babysitter flow - #548
miyaontherelay wants to merge 1 commit into
Conversation
Session-Id: 01a0c4a6-dd65-7ce1-a90e-de1b0b4e86c3
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing as superseded by the corrected product contract. Babysitter remains a schema-2 flow-extension plugin composed onto Software Garden; it is not a standalone Recommended Flow. The replacement work will add optional plugin composition to Garden activation and require an authorized coding-session binding before any |
Problem
Babysitter is only installable as a flow-extension plugin or as a hosted artifact pinned to one pull request. That is not the desired product path: Cloud needs a second Recommended Flow alongside Software Garden that can cover selected or all approved repositories, while a GitHub
babysitlabel opts an individual pull request into routing.The Cloud activation
labelis a display name, not a GitHub trigger, and plugin-install proof alone cannot establish this contract.Change
{ approver, pullRequest, event }envelope{ "events": "pull_request", "labels": "babysit" }This PR creates the Flows artifact only. A human Flows release is required before agentrelay.com or Cloud may pin it. It does not enable or claim automatic fixes, review publication, or merge.
Depends on the Surface vocabulary fix in #543.
Verification
The seven TODOs are the pre-existing, deliberately red capability gates described in the README.
Note
Low Risk
Changes are confined to the examples/babysitter package and a committed demo artifact; runtime behavior intentionally stays fail-closed with no merge or publication enabled.
Overview
Adds a second Babysitter install path for Cloud’s Recommended Flow catalog: a versioned standalone entry (
recommended.ts) that reads Cloud’s{ approver, pullRequest, event }envelope, maps coordinates from the trusted pull request object, validates all eleven subscription IDs before any GitHub read, and delegates to the existingbabysitConfiguredbody with authored fail-closed policy (no merge,testCommand: false, held capability gates).Build and commit plumbing:
build-recommended.mjsesbuild-bundles authored modules into the immutable one-file artifactdist/babysitter-recommended.flow.ts(Surface stays external);build:recommended/check:recommendedscripts and gitignore exceptions keep only that blob tracked. README documents the catalog trigger (pull_request+babysitlabel) versus the activation display label.Tests cover dynamic repo binding per subscription, rejection of untrusted delivery fields, pre-read validation failures, and artifact self-containment.
Reviewed by Cursor Bugbot for commit 2f26fb6. Bugbot is set up for automated code reviews on this repo. Configure here.